package com.peanut.devlibrary.camera;

import android.hardware.Camera.Size;

import java.util.Comparator;

public class PictureSizeComp implements Comparator<Size>{

	@Override
	public int compare(Size lhs, Size rhs) {
		if(lhs.width*lhs.height > rhs.width*rhs.height){
			return 1;
		}else if(lhs.width*lhs.height == rhs.width*rhs.height){
			return 0;
		}else{
			return -1;
		}
		
	}

}
